﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SharpTrainer.DP.AbstractFactory
{
    public class AbstractFactoryClient
    {
        private AbstractProductA abstractProductA; 
        private AbstractProductB abstractProductB; 
         
        public AbstractFactoryClient(AbstractFactory factory) 
        { 
            abstractProductB = factory.CreateProductB(); 
            abstractProductA = factory.CreateProductA(); 
        } 
        
        public void Run() 
        { 
            abstractProductB.Interact(abstractProductA); 
        }
    }
}
